package com.legal_documents_backend.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.neo4j.core.schema.Relationship;
import org.springframework.data.neo4j.core.schema.Property;
import org.springframework.data.neo4j.core.schema.Node;
import org.springframework.data.neo4j.core.schema.GeneratedValue;
import org.springframework.data.neo4j.core.schema.Id;
import org.springframework.data.neo4j.core.schema.Relationship.Direction;

import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Node("Case")
public class Case {
    @Id
    @GeneratedValue
    private Long id;

    @Property("case_id")
    private Integer caseId;

    private String url;

    @Property("case_number")
    private String caseNumber;

    @Property("case_name")
    private String caseName;

    private String source;

    @Property("hearing_procedure")
    private String hearingProcedure;

    @Property("adjudication_time")
    private LocalDate adjudicationTime;

    private String party;

    @Property("cause_of_action")
    private String causeOfAction;

//    @Relationship(type = "开庭于",direction = Direction.OUTGOING)
//    private Court court;
//
//    @Relationship(type = "位于", direction = Direction.OUTGOING)
//    private Region region;
//
//    @Relationship(type = "属于", direction = Direction.OUTGOING)
//    private CaseType caseType;
//
//    @Relationship(type = "法律依据为", direction = Direction.OUTGOING)
//    private LegalBasis legalBasis;
//
//    @Relationship(type = "开庭时间", direction = Direction.OUTGOING)
//    private OpenTime openTime;
}
